package org.csmzxy.class2333;

public class Pet {
    private String type;
    private int age;
    private boolean vaccimum;
    public Pet(String type, int age, boolean vaccimum) {
        this.type = type;
        this.age = age;
        this.vaccimum = vaccimum;
    }
    public void setType(String type) {

        this.type = type;
    }
    public void setAge(int age) {

        this.age = age;
    }
    public void setVaccimum(boolean vaccimum) {

        this.vaccimum = vaccimum;
    }
    public String getType() {

        return type;
    }
    public int getAge() {

        return age;
    }
    public boolean getHealth() {

        return vaccimum;
    }
    public static void main(String[] args) {
        Pet pet1 = new Pet("Dog", 3, true);
        Pet pet2 = new Pet("Cat", 2, false);
        System.out.println("Pet 1: Type = " + pet1.getType() + ", Age = " + pet1.getAge() + ", Vaccinated = " + pet1.getHealth());
        System.out.println("Pet 2: Type = " + pet2.getType() + ", Age = " + pet2.getAge() + ", Vaccinated = " + pet2.getHealth());
    }
}
